package com.example.demo.mongodao;

import com.example.demo.model.Todo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by guofs on 2017/6/28.
 */
@Repository
public interface TodoRepository extends MongoRepository<Todo, String> {
    List<Todo> findByUserUsername(String username);
}
